#include <func.h>

//改大改小文件
int main()
{
    int fd;
    fd=open("file",O_RDWR|O_CREAT,0600);
    ERROR_CHECK(fd,-1,"open");
    int ret=ftruncate(fd,100);
    ERROR_CHECK(ret,-1,"ftruncate");
    return 0;
}